package com.hourse.platform.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

/**
 * @ClassName RegisterUserReqVo
 * @Author limengqi
 * @Date 2020/12/12 14:31
 * @Description
 * @Version 1.0
 **/
@Data
public class RegisterUserReqVo extends BaseVo {

    private String id;

    @ApiModelProperty(value = "注册手机号",example = "18735432312",allowableValues = "18735432312")
    @Pattern(regexp = "^((13[0-9])|(14[5|7|9])|(15([0-3]|[5-9]))|(17([0-3][5-8]))|(18[0-9])|166|19(8|9))\\d{8}$",message = "账户格式有误")
    @NotBlank(message = "请输入手机号")
    private String account;

    @ApiModelProperty(value = "验证码",example = "123456",allowableValues = "123456")
    @NotBlank(message = "请输入验证码")
    private String verifyCode;

    @ApiModelProperty(value = "图形验证码",example = "123456",allowableValues = "123456")
    @NotBlank(message = "请输入验证码")
    private String imgNum;


    @ApiModelProperty(value = "密码",example = "123456",allowableValues = "123456")
    @NotBlank(message = "请输入密码")
    private String password;

    @ApiModelProperty(value = "确认密码",example = "123456",allowableValues = "123456")
    @NotBlank(message = "确认密码")
    private String confirmPassword;


    @ApiModelProperty(value = "企业名称",example = "国誉金服",allowableValues = "国誉金服")
    @NotBlank(message = "企业名称不能为空")
    @Size(max = 50, message = "企业名称最长为50")
    private String epName;

    @ApiModelProperty(value = "法人代表",example = "张某某",allowableValues = "张某某")
    @NotBlank(message = "法人代表不能为空")
    private String ceoName;

    @ApiModelProperty(value = "注册人姓名",example = "张某某",allowableValues = "张某某")
    @NotBlank(message = "注册人姓名")
    private String name;

    // @ApiModelProperty(value = "随机图片结果",example = "12",allowableValues = "12")
    // @NotBlank(message = "随机图片结果")
    // private String imgNum;

   /* @ApiModelProperty(value = "验证码",example = "3787",allowableValues = "3787")
    @NotBlank(message = "验证码")
    private String captcha;*/

}
